
package com.cmc.service.impl;

import java.util.List;

import com.cmc.service.impl.BaseManager;
import com.cmc.model.CardTime;
import com.cmc.dao.CardTimeDao;
import com.cmc.service.CardTimeManager;
/*
* @aegis.mapping
*/
public class CardTimeManagerImpl extends BaseManager implements CardTimeManager {
    private CardTimeDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setCardTimeDao(CardTimeDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.cmc.service.CardTimeManager#getCardTimes(com.cmc.model.CardTime)
     */
    public List getCardTimes(final CardTime cardTime) {
        return dao.getCardTimes(cardTime);
    }

    /**
     * @see com.cmc.service.CardTimeManager#getCardTime(String id)
     */
    public CardTime getCardTime(final String id) {
        return dao.getCardTime(new Long(id));
    }

    /**
     * @see com.cmc.service.CardTimeManager#saveCardTime(CardTime cardTime)
     */
    public void saveCardTime(CardTime cardTime) {
        dao.saveCardTime(cardTime);
    }

    /**
     * @see com.cmc.service.CardTimeManager#removeCardTime(String id)
     */
    public void removeCardTime(final String id) {
        dao.removeCardTime(new Long(id));
    }
}
